/**
 * 獲取房間列表
 * 
 * @author LuoDong
 * @email luo4521@online.net.tw
 * 2010-2-6 11:50
 */
package com.addcn.texas.control {
	import com.addcn.fog.control.ICommand;
	import com.addcn.fog.control.SimpleCommand;
	
	import com.addcn.texas.model.HallModel;
	import com.addcn.texas.view.*;	
	
	import com.addcn.common.utils.DestroyMemory;
	
	public class GetHallListCommand extends SimpleCommand implements ICommand {
		
		public override function execute(r_data:Object = null):void {	
			if (!modelLocator.hasModel(HallModel)) {
				modelLocator.addModel(HallModel);
			}
			var _model = modelLocator.getModel(HallModel);
			_model.getRoomList(r_data.type, r_data.request);
			DestroyMemory.clear();
		}

	}
}
